<div class="cdeModules form">
<?php echo $form->create('CdeModule');?>
	<fieldset>
 		<legend><?php __('Update module');?></legend>
		<?php echo $form->input('id', array('type' => 'hidden', 'label' => false)); ?>
		<?php echo $form->input('cde_unit_id', array('type' => 'hidden', 'label' => false)); ?>
		<table>
			<tr>
				<td class='label'>Module title:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('title', array('label' => false)); ?></td>
			</tr>
			<tr>
				<td class='label'>Description:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('description', array('label' => false, 'type' => 'textarea', 'cols' => '60', 'rows' => '2')); ?></td>
			</tr>
			<tr>
				<td class='label'>Introduction:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('introduction', array('label' => false, 'type' => 'textarea', 'cols' => '60', 'rows' => '4')); ?></td>
			</tr>
			<tr>
				<td class='label'>Multimedia 1 URL:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('multimediaurl1', array('options' => $cdeMultimedias, 'label' => false)); ?></td>
			</tr>
			<tr>
				<td class='label'>Multimedia 2 URL:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('multimediaurl2', array('options' => $cdeMultimedias, 'label' => false)); ?></td>
			</tr>
			<tr>
				<td class='label'>Question:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('question', array('label' => false, 'type' => 'textarea', 'cols' => '60', 'rows' => '2')); ?></td>
			</tr>
			<tr>
				<td class='label'>Question type:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('questiontype', array('options' => $questionTypes, 'label' => false)); ?></td>
			</tr>
			<tr>
				<td class='label'>Right answer point:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('rightanswerpoint', array('label' => false)); ?></td>
			</tr>
			<tr>
				<td class='label'>Wrong answer point:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('wronganswerpoint', array('label' => false)); ?></td>
			</tr>
			<tr>
				<td class='label'>Pass level:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('passpoint', array('label' => false)); ?></td>
			</tr>
			<tr>
				<td class='label'>Pass message:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('passmessage', array('label' => false, 'type' => 'textarea', 'cols' => '60', 'rows' => '2')); ?></td>
			</tr>
			<tr>
				<td class='label'>Fail message:</td>
				<td class='required'>&nbsp;*&nbsp;</td>
				<td><?php echo $form->input('failmessage', array('label' => false, 'type' => 'textarea', 'cols' => '60', 'rows' => '2')); ?></td>
			</tr>
			<tr>
				<td colspan="2">&nbsp;</td>
				<td class="submit">
					<?php echo $form->submit('Submit', array('class' => 'button'));?>
					
				</td>
			</tr>
		</table>
	</fieldset>
<?php echo $form->end();?>

</div>
<div class="actions">
	<?php echo $html->link(__('Back to Manage unit', true), array('action'=>'../cde_units/manage/'.$cdeModule['CdeModule']['cde_unit_id']));?>
</div>
